import QtQuick 2.0
import QtGraphicalEffects 1.0

Item {
    property alias rectColor: rect.color
    property alias imageUrl: image.source

    Rectangle{
        id: rect
        anchors.fill: parent
        smooth: true
        visible: false
        radius: parent.width/2
        color: "white"
    }
    Image {
        id: image
        source: "images/photo.jpg"
        anchors.fill: parent
        sourceSize: Qt.size(parent.width, parent.height)
        smooth: true
        visible: false
    }
    OpacityMask {
        anchors.fill: image
        source: image
        maskSource: rect
    }
}
